import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = () => new Vuex.Store({
  state: {
    gameList: []
  },
  mutations: {
    setGameList(state, list) {
      state.gameList = list
    }
  }
})

export default store
